<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<link href="resources/index.css" rel="stylesheet" type="text/css" />
</head>
<body>
	<table width="700" height="70" border="0" align="center"
		cellpadding="0" cellspacing="0">
		<tr height="48">
			<th background="resources/footer.gif"><div class="h_mnu_01">
					<ul>
						<li><a class="new1"
							href="<c:url value="/j_spring_security_logout"/>">logout</a></li>
						<li><a class="new1" href="<c:url value="/users" />">users</a>
						</li>
						<li><a class="new1" href="<c:url	value="/auth"	/>">home</a>
						</li>
					</ul>
				</div></th>
		</tr>
		<tr height="10">
			<td valign="top"margin-left: 30%; >
				<div margin-left: 30%;  style="width: 680px;" id="page_body"
					class="fl_r">
					<div id="header_wrap2">
						<div id="header_wrap1">
							<div id="header" style="">
								<h1 id="title">
									<c:out value="${about_user.firstname} ${about_user.lastname}"></c:out>
									<c:if test="${ default_user_id==user_id}">
										<b>(it's You)</b>
									</c:if>
								</h1>

							</div>
						</div>
					</div>
				</div></td>
		</tr>
		<tr height="10">
			<td valign="top">
				<table width="678" id="wall_style" style="" border="0"
					align="center" cellpadding="0" cellspacing="0">
					<tr>
						<td width="275" valign="top">User's Photo</td>
						<td align="left">

							<form method="POST">
								<b>Wall:</b><br>
								<textarea rows="6" cols="30" name="messageContent"></textarea>
								<p>
									<input type=submit name="send" value="Send" align="right">
							</form>
							<table align="center" class="wall_title">
								<c:forEach var="u" items="${about_user.messages}"
									varStatus="iter">

									<tr>
										<td class="wall_message_content">User:<br> <a
											href="user${u.getSenderId()}"><c:out
													value="${sender_lastname.get(iter.index)} ${sender_firstname.get(iter.index)}"></c:out>
										</a>
										</td>
									</tr>
									<tr>
										<td>Message:<br>
										<h4>${u.messageContent}</h4>
										</td>
										<td><table>
												<tr>
													<td><c:if
															test="${ u.getSenderId()!=(default_user_id)}">
															<a
																href="<c:url value="add_voice_${user_id}_${u.messageId}" />">Add
																voice </a>${voices.get(iter.index)}
															</c:if>
													</td>
												</tr>

												<tr>
													<td><c:if
															test="${ u.getSenderId()==(default_user_id)||(default_user_id==user_id) || (isAdmin)}">
															<a
																href="<c:url value="delete_message_${user_id}_${u.messageId}" />">
																Delete</a>
														</c:if>
													</td>
												</tr>
											</table></td>
									</tr>
								</c:forEach>
							</table></td>
					</tr>
				</table></td>
		</tr>
	</table>

</body>
</html>